					
					<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core"%>
					<%@ taglib prefix="fn" uri="http://java.sun.com/jsp/jstl/functions" %>
					<%@ taglib prefix="fmt" uri="http://java.sun.com/jsp/jstl/fmt" %>
					<div class="post">
						<h2 class="title"><fmt:message key="locanet.cliente.busca.titulo"/></h2>
						<form action="cliente@select.action">
							<table>
								<tr><td><fmt:message key="locanet.pessoa.nome"/></td><td><input maxlength="100" type="text" name="entity.nome" value="<c:out value="${param['entity.nome']}"/>" /></td></tr>
								<tr><td><fmt:message key="locanet.cliente.cpf"/></td><td><input maxlength="11" type="text" name="entity.cpf" value="<c:out value="${param['entity.cpf']}"/>"/></td></tr>
								<tr><td><fmt:message key="locanet.pessoa.login"/></td><td><input maxlength="20" type="text" name="entity.login" value="<c:out value="${param['entity.login']}"/>"/></td></tr>
								<tr><td><fmt:message key="locanet.cliente.endereco"/></td><td><input maxlength="100" type="text" name="entity.endereco" value="<c:out value="${param['entity.endereco']}"/>"/></td></tr>
								<tr><td><fmt:message key="locanet.cliente.cep"/></td><td><input maxlength="20" type="text" name="entity.cep" value="<c:out value="${param['entity.cep']}"/>" /></td></tr>
								<tr><td><input type="submit" value="<fmt:message key="locanet.butoes.buscar"/>" /></td><td><a class="button" href="cliente@insert.action"><fmt:message key="locanet.butoes.inserir"/></a></td></tr>
							</table>
						</form>
					</div>
					<div class="post">
						<table>
							<tr><th></th><th></th><th><fmt:message key="locanet.pessoa.nome"/></th><th><fmt:message key="locanet.cliente.cpf"/></th><th><fmt:message key="locanet.pessoa.login"/></th><th><fmt:message key="locanet.status"/></th></tr>
							<%@page import="br.com.locanet.bean.impl.Cliente"%>
						<c:choose>
						   <c:when test="${!empty requestScope.entities}">
						     <c:forEach items="${requestScope.entities}" var="c">
						        <tr>
						           <td><a href="cliente@update.action?entity.cpf=${c.id}" class="button"><fmt:message key="locanet.entidades.lista.editar"/></a></td>
						           <td><a href="cliente@delete.action?entity.cpf=${c.id}" class="button"><fmt:message key="locanet.entidades.lista.excluir"/></a></td>
						           <td><c:out value="${c.nome}"/></td>
									<td><c:out value="${c.cpf}"/></td>
									<td><c:out value="${c.login}"/></td>
									<td>
										<c:if test="${c.status==1}"><font color="green"><fmt:message key="locanet.entidades.status.ativo"/></font></c:if>
										<c:if test="${c.status==0}"><font color="red"><fmt:message key="locanet.entidades.status.inativo"/></font></c:if>
									</td>
						        </tr>
						      </c:forEach>
						    <tr><td colspan="100%" style="text-align:center">
						    	<c:out value="${fn:length(requestScope.entities)}" /> <fmt:message key="locanet.entidades.lista.resultados.achado"/><br/>
							     <div class="pagination"><c:forEach begin="1" end="${fn:length(requestScope.entities)/10+((fn:length(requestScope.entities)%10!=0)?1:0)}" var="cont">
							    	<a href="cliente@select.action?entity.nome=${param['entity.nome']}&entity.cpf=${param['entity.cpf']}&entity.login=${param['entity.login']}&entity.endereco=${param['entity.endereco']}&entity.cep=${param['entity.cep']}&page=${cont}"><c:out value="${cont}" /></a>
							    </c:forEach></div>
						    </td></tr>
						   </c:when>
						   <c:otherwise>
						      <tr><td colspan="100%"><fmt:message key="locanet.entidades.status.resultados.naoachado"/></td></tr>
						   </c:otherwise>
						</c:choose>
						</table>
					</div>
